package com.weixing.mall.provider.model.vo.report.storage;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author jzy
 * @date 2020/6/6
 */
@Data
@Accessors(chain = true)
@ApiModel(value="StorageExchangeReportVo", description="05仓储部-换货报表")
public class StorageExchangeReportVo {
    @ApiModelProperty(value = "用户名")
    @ExcelProperty("用户名")
    private String userName;
    @ApiModelProperty(value = "用户角色")
    @ExcelProperty("用户角色")
    private String userRole;
    @ApiModelProperty(value = "订单号")
    @ExcelProperty("订单号")
    private String orderSn;
    @ApiModelProperty(value = "换货数量")
    @ExcelProperty("换货数量")
    private String quantity = "1";
    @ApiModelProperty(value = "换货金额")
    @ExcelProperty("换货金额")
    private String orderPrice;
    @ApiModelProperty(value = "下单时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("下单时间")
    private Date createdTime;
    @ApiModelProperty(value = "审核时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("审核时间")
    private Date auditTime;
    @ApiModelProperty(value = "换货时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty("换货时间")
    private Date exchangeTime;
    @ApiModelProperty(value = "备注")
    @ExcelProperty("备注")
    private String remark;
    @ApiModelProperty(value = "订单ID")
    @ExcelIgnore
    private Long orderId;
    @ApiModelProperty(value = "售后ID")
    @ExcelIgnore
    private Long afterSaleId;
}
